﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ClusHal
{
    class Program
    {
        static void Main(string[] args)
        {
            DoClusters();
            //LoadClusters();
            Console.ReadLine();
        }

        static void DoClusters()
        {
            ClusHal ch = new ClusHal("cw.txt");
            ch.DominanceRelation();
            ch.FindClusters();
            ch.ArrangeClusters();
            ch.PrintClusters();
            ch.Approximations();
            ch.SaveState("out.txt");
            ch.ResolveConflicts();
        }

        static void LoadClusters()
        {
            ClusHal ch = new ClusHal("data.txt");
            ch.LoadState("out.txt");
            ch.ResolveConflicts();
        }
    }
}
